package com.yinxin.aop;

import com.yinxin.aop.AopTest.personServer;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author yinxin
 * @version 1.0
 * @Description:
 * @date 2022/3/1016:34
 */
public class test {
    @Test
    public void inteceptorTest(){
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext-aop.xml");
        personServer bean = (personServer)ctx.getBean("personServiceBean");
        bean.save("badMonkey",23);
    }

}
